import java.util.Scanner;
class  Cashcard {
    String number;
    int balance;
    int bouns;

    Cashcard(String number, int balance, int bouns) {
        this.number = number;
        this.balance = balance;
        this.bouns = bouns;
    }

    void store(int money) {//cunkuan
        if (money > 0) {
            this.balance += money;
            if (money >= 1000) {
                this.bouns++;
            }
        } else {
            System.out.println("money为负数。");
        }
    }

    void charge(int money) {//kou kuan
        if (money > 0) {
            if (money < this.balance) {
                this.balance -= money;
            }
            else {
                System.out.println("money is not enough");
        }
        }
        else{
            System.out.println("wrong");
        }
    }
    int exchange(int bouns){
        if (bouns>0){
            this.bouns-=bouns;
        }
        return this.bouns;
    }


}
    public class cashcard3 {
        public static void main(String[] args) {
            Scanner scanner =new Scanner(System.in);
            Cashcard card1 =new Cashcard("q213",300,0);
            card1.store(scanner.nextInt());
            Cashcard card2 =new Cashcard("q23",500,0);
            card1.store(scanner.nextInt());



        }
    }
